import main from './components/main.vue'
import login from './components/login.vue'
import resource from './components/resource/resource.vue'
import loading from './components/loading.vue'
import youxi from './components/youxi.vue'
export default {
    // mode: 'history',
    // hashbang: false,
    // history: true,
    routes: [{
            path: '/',
            component: login
        },
        {
            name: 'main',
            path: '/main',
            component: main
        },
        {
            path: '/loading',
            component: loading
        },
        {
            path: '/youxi',
            component: youxi
        },
        {
            name: 'resource',
            path: '/resource/:ResourceID/:dt',
            component: resource,
            children: [
                // {path: '/main', component: main}//,
                // {path: '/home/XK', component: XK},
                // {path: '/home/DM', component: DM},
                // {path: '/home/FZ', component: FZ}
                // ,
                // {path: '/home/login', component: Login},
                // {path: '/home/reg', component: Reg}
            ]
        },
        {
            path: '*',
            redirect: '/main'
        } //404登陆界面
    ]
}